package com.sjzs.web.dao;

import java.util.Date;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.sjzs.web.po.Appsoft;
import com.sjzs.web.util.DateUtil;

public class AppSoftDao extends HibernateDaoSupport{
	/**
	 * 保存应用信息
	 * @param appsoft
	 */
	public void saveAppsoft(Appsoft appsoft) {
		String id=this.getSession().createSQLQuery("select SEQ_APPSOFT_ID.nextval from dual").uniqueResult().toString();
		appsoft.setId(id);
		appsoft.setCreatedate(DateUtil.dateToString("yyyy-MM-dd HH:mm:ss", new Date()));
		this.getHibernateTemplate().save(appsoft);
	}
}
